package icu.sehnen.mapper;

import icu.sehnen.model.UserModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    Integer findUser(@Param("username")String username,@Param("password") String password);
    Integer addUser(UserModel user);
    List<UserModel> findAll(String query);
    Integer swichStats(@Param("id") Long  id, @Param("status") Integer status);
    UserModel findUserById(Long id);
    Integer deleteUserById(Long id);

}

